# frozen_string_literal: true

class AddVulnerabilityOccurrenceIdToVulnerabilityReadsLinks < Gitlab::Database::Migration[2.3]
  milestone '18.5'

  def up
    # rubocop:disable Migration/PreventAddingColumns -- This is a needed column to relate to vulnerability_occurrences
    add_column :vulnerability_reads, :vulnerability_occurrence_id, :bigint
    # rubocop:enable Migration/PreventAddingColumns
  end

  def down
    remove_column :vulnerability_reads, :vulnerability_occurrence_id
  end
end
